package com.wanhe.viewconf.adapter;

import android.support.annotation.Keep;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import com.wanhe.viewconf.views.child.BaseXYView;

/**
 * Created by cdj on 2017/1/13.
 */
@Keep
public abstract class MenuPageItemAdapter extends BaseAdapter {
    public abstract String getItemType(int position);

    /**
     *
     * 加载特殊的带有坐标信息的子控件
     *
     * @author 陈德基
     * @time 2017/1/13 14:17
     */
    public abstract BaseXYView getXYView(int position, View convertView, ViewGroup parent);

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        return getXYView(position, convertView, parent);
    }
}
